* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #333;
    line-height: 1.6;
    scroll-behavior: smooth;
}

.container {
    width: 520px;
    min-height: 580px;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    scroll-behavior: smooth;
}

/* Header */
.header {
    background: linear-gradient(135deg, #22d3ee 0%, #3b82f6 100%);
    color: white;
    padding: 24px;
    text-align: center;
}

.logo h1 {
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 6px;
}

.logo p {
    font-size: 15px;
    opacity: 0.9;
}

/* Search Section */
.search-section {
    padding: 24px;
}

.search-tips {
    margin-bottom: 18px;
    padding: 16px;
    background: #f0f9ff;
    border-radius: 10px;
    border-left: 4px solid #22d3ee;
}

.tip-title {
    font-weight: 600;
    color: #0891b2;
    margin-bottom: 6px;
    font-size: 15px;
}

.tip-text {
    color: #0891b2;
    font-size: 14px;
    margin-bottom: 4px;
}

.tip-example {
    color: #0e7490;
    font-size: 13px;
    opacity: 0.8;
}

.search-container {
    margin-bottom: 18px;
}

#search-input {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    font-size: 15px;
    transition: all 0.3s ease;
    margin-bottom: 14px;
}

#search-input:focus {
    outline: none;
    border-color: #22d3ee;
    box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.1);
}

#search-button {
    width: 100%;
    padding: 14px 18px;
    background: linear-gradient(135deg, #22d3ee 0%, #3b82f6 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

#search-button:hover {
    background: linear-gradient(135deg, #0891b2 0%, #1d4ed8 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(34, 211, 238, 0.3);
}

#search-button:active {
    transform: translateY(0);
}

.search-icon {
    font-size: 18px;
}

.search-notice {
    margin-top: 14px;
}

.notice-box {
    background: #fef3c7;
    border: 1px solid #fbbf24;
    border-radius: 10px;
    padding: 12px 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: #92400e;
}

.notice-icon {
    font-size: 16px;
}

/* Loading */
.loading {
    text-align: center;
    padding: 50px 24px;
    color: #6b7280;
}

.spinner {
    width: 36px;
    height: 36px;
    border: 3px solid #e5e7eb;
    border-top: 3px solid #22d3ee;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 18px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Results */
.results-section {
    padding: 0 24px 24px;
}

.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e5e7eb;
}

.results-header h3 {
    font-size: 20px;
    font-weight: 600;
    color: #1f2937;
}

#results-count {
    font-size: 13px;
    color: #6b7280;
    background: #f3f4f6;
    padding: 6px 12px;
    border-radius: 14px;
}

.results-container {
    max-height: 350px;
    overflow-y: auto;
    padding-right: 4px;
}

.result-item {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 16px;
    margin-bottom: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.result-item:hover {
    background: #f1f5f9;
    border-color: #22d3ee;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(34, 211, 238, 0.1);
}

.result-title {
    font-size: 16px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 6px;
    line-height: 1.4;
}

.result-artist {
    font-size: 14px;
    color: #64748b;
    margin-bottom: 10px;
}

.result-stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.result-stats-left {
    display: flex;
    gap: 16px;
}

.result-stats span {
    font-size: 12px;
    color: #64748b;
    display: flex;
    align-items: center;
    gap: 4px;
}

.result-link {
    color: #22d3ee;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    padding: 6px 12px;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.result-link:hover {
    background: #22d3ee;
    color: white;
}

/* No Results */
.no-results {
    text-align: center;
    padding: 50px 24px;
    color: #6b7280;
}

.no-results-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.no-results p {
    font-size: 16px;
    margin-bottom: 8px;
}

.no-results-tip {
    font-size: 14px;
    opacity: 0.8;
}

/* Lyrics Display */
.lyrics-result {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.lyrics-result:hover {
    background: #f1f5f9;
    border-color: #22d3ee;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(34, 211, 238, 0.1);
}

.lyrics-header {
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid #e2e8f0;
}

.lyrics-title {
    font-size: 18px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 6px;
}

.lyrics-artist {
    font-size: 15px;
    color: #64748b;
    font-weight: 500;
    margin-bottom: 4px;
}

.lyrics-album {
    font-size: 13px;
    color: #94a3b8;
    font-style: italic;
}

.lyrics-content {
    max-height: 300px;
    overflow-y: auto;
    padding: 12px 0;
    line-height: 1.8;
}

.lyrics-line {
    margin-bottom: 16px;
    padding: 8px 0;
    border-bottom: 1px solid #f1f5f9;
}

.lyrics-line:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.lyrics-original {
    font-size: 15px;
    color: #1e293b;
    font-weight: 500;
    margin-bottom: 4px;
    line-height: 1.6;
}

.lyrics-pinyin {
    font-size: 14px;
    color: #3b82f6;
    font-family: 'Courier New', monospace;
    letter-spacing: 0.5px;
    line-height: 1.4;
}

.lyrics-error {
    text-align: center;
    color: #ef4444;
    font-size: 14px;
    padding: 20px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 8px;
}

.lyrics-footer {
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px solid #e2e8f0;
    text-align: center;
}

/* 复制按钮样式 */
.copy-button {
    background: linear-gradient(135deg, #22d3ee 0%, #3b82f6 100%);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 0 auto;
    min-width: 120px;
}

.copy-button:hover {
    background: linear-gradient(135deg, #0891b2 0%, #1d4ed8 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(34, 211, 238, 0.3);
}

.copy-button:active {
    transform: translateY(0);
}

.copy-button.copy-success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.copy-button.copy-error {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}

.copy-icon {
    font-size: 16px;
}

.copy-text {
    font-size: 14px;
}

/* 歌词内容滚动条 */
.lyrics-content::-webkit-scrollbar {
    width: 4px;
}

.lyrics-content::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 2px;
}

.lyrics-content::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 2px;
}

.lyrics-content::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Footer */
.footer {
    padding: 16px 24px;
    text-align: center;
    border-top: 1px solid #e5e7eb;
    background: #f8fafc;
}

.footer a {
    color: #22d3ee;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
}

.footer a:hover {
    color: #0891b2;
    text-decoration: underline;
}

/* Utilities */
.hidden {
    display: none !important;
}

/* Scrollbar */
.results-container::-webkit-scrollbar {
    width: 6px;
}

.results-container::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 3px;
}

.results-container::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}

.results-container::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Responsive */
@media (max-width: 540px) {
    .container {
        min-height: 100vh;
        border-radius: 0;
    }
    
    .lyrics-content {
        max-height: 250px;
    }
    
    .lyrics-original {
        font-size: 14px;
    }
    
    .lyrics-pinyin {
        font-size: 13px;
    }
} 